﻿/* ============================================ */
/* wwwroot/css/glassmorphism.css */
/* ============================================ */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #ff6b9d 75%, #c471ed 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    padding: 20px;
}

@@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.sphere {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.sphere1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.8), rgba(255, 107, 157, 0.2));
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.sphere2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 132, 255, 0.8), rgba(168, 132, 255, 0.2));
    top: 60%;
    left: -5%;
    animation-delay: -7s;
}

.sphere3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.8), rgba(240, 147, 251, 0.2));
    bottom: 10%;
    right: 10%;
    animation-delay: -3s;
}

.sphere4 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.8), rgba(102, 126, 234, 0.2));
    top: 20%;
    right: 15%;
    animation-delay: -5s;
}

.sphere5 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(196, 113, 237, 0.8), rgba(196, 113, 237, 0.2));
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

@@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
    position: relative;
    z-index: 1;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.logo-icon {
    font-size: 28px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

    .nav-links a {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        font-size: 16px;
        transition: all 0.3s ease;
    }

        .nav-links a:hover {
            color: white;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        }

.auth-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
    position: relative;
}

.username-display {
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

    .username-display::after {
        content: "▼";
        font-size: 10px;
        margin-left: 5px;
        transition: transform 0.3s ease;
    }

.user-menu {
    position: relative;
}

    .user-menu:hover .username-display {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25));
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

        .user-menu:hover .username-display::after {
            transform: rotate(180deg);
        }

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 8px;
    min-width: 220px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.user-menu:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    margin-bottom: 4px;
}

    .dropdown-item:last-child {
        margin-bottom: 0;
    }

    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(5px);
    }

    .dropdown-item::before {
        margin-right: 10px;
    }

    .dropdown-item:nth-child(1)::before {
        content: "👥";
    }

    .dropdown-item:nth-child(2)::before {
        content: "⚙️";
    }

.btn-logout {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ff6b9d;
}

    .btn-logout::before {
        content: "🚪";
        margin-right: 10px;
    }

    .btn-logout:hover {
        background: rgba(255, 107, 157, 0.2);
    }

/* Settings Page */
.settings-container {
    max-width: 1000px;
    margin: 40px auto;
}

.settings-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(30px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.settings-header {
    text-align: center;
    padding: 50px 50px 30px 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

    .settings-header h2 {
        color: white;
        font-size: 38px;
        margin-bottom: 10px;
        font-weight: 700;
    }

    .settings-header p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 16px;
    }

.settings-tabs {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.08);
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 20px 40px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    flex: 1;
    position: relative;
}

    .tab-button::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, #a884ff, #ff6b9d);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .tab-button:hover {
        color: white;
        background: rgba(255, 255, 255, 0.08);
    }

    .tab-button.active {
        color: white;
        background: rgba(255, 255, 255, 0.12);
    }

        .tab-button.active::before {
            transform: scaleX(1);
        }

.tab-content {
    display: none;
    padding: 40px 50px;
}

    .tab-content.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 35px;
}

    .form-section h3 {
        color: white;
        font-size: 22px;
        margin-bottom: 25px;
        font-weight: 600;
    }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

    .form-group:last-child {
        margin-bottom: 0;
    }

    .form-group label {
        color: rgba(255, 255, 255, 0.9);
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

.form-control-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 14px 18px;
    color: white;
    font-size: 15px;
    transition: all 0.3s ease;
}

    .form-control-glass option {
        background: rgb(171 149 233);
        color: black;
    }


    .form-control-glass:read-only {
        background: rgba(255, 255, 255, 0.05);
        cursor: not-allowed;
        color: rgba(255, 255, 255, 0.6);
    }

.form-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .alert::before {
        font-size: 20px;
    }

.alert-success {
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.4);
    color: #4ade80;
}

    .alert-success::before {
        content: "✓";
    }

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

    .alert-error::before {
        content: "✗";
    }

.danger-zone {
    background: rgba(239, 68, 68, 0.08);
    border: 2px solid rgba(239, 68, 68, 0.3);
    margin-top: 40px;
}

    .danger-zone h3 {
        color: #ff6b9d;
    }

    .danger-zone p {
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 20px;
        line-height: 1.6;
    }

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid rgba(239, 68, 68, 0.5);
    color: #ff6b9d;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-danger:hover {
        background: rgba(239, 68, 68, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
    }

.subscription-info {
    text-align: center;
    margin-bottom: 40px;
}

.plan-badge {
    display: inline-block;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

    .plan-badge.free {
        background: linear-gradient(135deg, rgba(156, 163, 175, 0.3), rgba(107, 114, 128, 0.3));
        color: #d1d5db;
        border: 2px solid rgba(156, 163, 175, 0.5);
    }

    .plan-badge.premium {
        background: linear-gradient(135deg, rgba(168, 132, 255, 0.3), rgba(139, 92, 246, 0.3));
        color: #c4b5fd;
        border: 2px solid rgba(168, 132, 255, 0.5);
    }

    .plan-badge.vip {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 193, 7, 0.3));
        color: #fde047;
        border: 2px solid rgba(255, 215, 0, 0.5);
    }

.plan-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.6;
}

.subscription-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.12));
    }

.stat-value {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.upgrade-section {
    margin-top: 50px;
}

    .upgrade-section h4 {
        color: white;
        font-size: 26px;
        margin-bottom: 30px;
        text-align: center;
        font-weight: 700;
    }

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.plan-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 40px 35px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .plan-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, #a884ff, #ff6b9d);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .plan-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.4);
    }

        .plan-card:hover::before {
            transform: scaleX(1);
        }

    .plan-card.vip {
        border-color: rgba(255, 215, 0, 0.4);
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 193, 7, 0.05));
    }

        .plan-card.vip::before {
            background: linear-gradient(90deg, #ffd700, #ffc107);
        }

    .plan-card h5 {
        color: white;
        font-size: 26px;
        margin-bottom: 20px;
        font-weight: 700;
    }

    .plan-card .price {
        color: white;
        font-size: 48px;
        font-weight: 800;
        margin-bottom: 25px;
        line-height: 1;
    }

        .plan-card .price span {
            font-size: 18px;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.6);
        }

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}

    .features-list li {
        color: rgba(255, 255, 255, 0.85);
        padding: 12px 0;
        font-size: 14px;
        font-weight: 500;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

        .features-list li:last-child {
            border-bottom: none;
        }

        .features-list li::before {
            content: "✓";
            color: #4ade80;
            font-weight: bold;
            margin-right: 12px;
            font-size: 16px;
        }

.btn-glass, .btn-glass-secondary, .btn-glass-primary {
    padding: 10px 25px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.btn-glass-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

    .btn-glass-secondary:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

    .btn-glass:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
    }

.btn-glass-primary {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 40px;
    font-size: 16px;
}

    .btn-glass-primary:hover {
        background: rgba(255, 255, 255, 0.35);
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

.btn-large {
    width: 100%;
    padding: 18px 40px;
    font-size: 18px;
    margin-top: 20px;
}

.btn-glass-small {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-glass-small-secondary {
    padding: 8px 16px;
    font-size: 13px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 64px;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 700;
}

.hero-content .subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 2px;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 16px;
}

.cta-button {
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

    .cta-button:hover {
        background: rgba(255, 255, 255, 0.35);
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.quote-icon {
    font-size: 180px;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

    .feature-card:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-5px);
    }

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.pagination {
    display: flex;
    gap: 10px;
    margin-top: 40px;
}

.dot {
    width: 50px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .dot.active {
        background: rgba(255, 255, 255, 0.8);
    }

    .dot:hover {
        background: rgba(255, 255, 255, 0.6);
    }

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 50px;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

    .auth-header h2 {
        color: white;
        font-size: 32px;
        margin-bottom: 10px;
    }

    .auth-header p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 16px;
    }

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .form-group label {
        color: rgba(255, 255, 255, 0.9);
        font-size: 14px;
        font-weight: 500;
    }

.form-control-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .form-control-glass::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }

    .form-control-glass:focus {
        outline: none;
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.5);
    }

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

    .auth-footer p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 14px;
    }

    .auth-footer a {
        color: white;
        font-weight: 600;
        text-decoration: none;
    }

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

.text-danger {
    color: #ff6b9d;
    font-size: 12px;
}

/* Create Companion */
.create-container {
    max-width: 900px;
    margin: 40px auto;
}

.create-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 50px;
    position: relative;
    z-index: 1;
}

.create-header {
    text-align: center;
    margin-bottom: 40px;
}

    .create-header h2 {
        color: white;
        font-size: 36px;
        margin-bottom: 10px;
    }

    .create-header p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 16px;
    }

.create-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
}

    .form-section h3 {
        color: white;
        font-size: 24px;
        margin-bottom: 20px;
    }

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

textarea.form-control-glass {
    resize: vertical;
    min-height: 100px;
}

select.form-control-glass {
    cursor: pointer;
}

/* Companions */
.companions-container {
    max-width: 1200px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    position: relative;
    z-index: 1;
}

.companions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

    .companions-header h2 {
        color: white;
        font-size: 32px;
    }

.companions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.companion-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
}

    .companion-card:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-5px);
    }

.companion-avatar {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .companion-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.avatar-placeholder {
    font-size: 80px;
    color: white;
    font-weight: bold;
}

.companion-info h3 {
    color: white;
    font-size: 22px;
    margin-bottom: 8px;
}

.companion-details, .companion-personality, .companion-style {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 5px;
}

.companion-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

/* Chat */
.chat-container {
    max-width: 900px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-companion-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

    .chat-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.avatar-placeholder-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.chat-companion-info h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 5px;
}

.status-online {
    color: #4ade80;
    font-size: 12px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    max-width: 70%;
}

.message-user {
    align-self: flex-end;
}

.message-companion {
    align-self: flex-start;
}

.message-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 12px 18px;
}

.message-user .message-content {
    background: rgba(255, 255, 255, 0.25);
}

.message-content p {
    color: white;
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.5;
}

.message-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

.chat-input-container {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-form {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 12px 20px;
    color: white;
    font-size: 14px;
}

    .chat-input:focus {
        outline: none;
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .chat-input::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }

.btn-send {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 15px;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-send:hover {
        background: rgba(255, 255, 255, 0.35);
        transform: translateY(-2px);
    }

@@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .nav-links {
        display: none;
    }

    .container {
        padding: 25px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

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

</style >