* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f1f39 0%, #3e3e65 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-size: 18px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 15% 15%, rgba(62, 62, 101, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 85% 15%, rgba(15, 31, 57, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 15% 85%, rgba(62, 62, 101, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 85% 85%, rgba(15, 31, 57, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(62, 62, 101, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.floating-circle {
    position: fixed;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(62, 62, 101, 0.1), rgba(15, 31, 57, 0.08));
    backdrop-filter: blur(25px);
    pointer-events: none;
    z-index: -1;
    animation: floatMove 10s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.floating-circle:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.floating-circle:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 8%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.floating-circle:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 15%;
    right: 10%;
    animation-delay: 4s;
    animation-duration: 14s;
}

.floating-circle:nth-child(4) {
    width: 80px;
    height: 80px;
    top: 45%;
    right: 20%;
    animation-delay: 6s;
    animation-duration: 9s;
}

@keyframes floatMove {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.1;
    }
    25% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 0.2;
    }
    50% {
        transform: translate(-20px, 25px) scale(0.9);
        opacity: 0.15;
    }
    75% {
        transform: translate(15px, 10px) scale(1.05);
        opacity: 0.18;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.1;
    }
}

.page {
    display: none;
    min-height: 100vh;
    padding: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: translateY(0);
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#termsPage .container {
    max-width: 850px;
}

.card {
    background: linear-gradient(135deg, rgba(15, 31, 57, 0.8) 0%, rgba(62, 62, 101, 0.6) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 35px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(255, 255, 255, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(62, 62, 101, 0.2);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: cardSlideIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes cardSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.header {
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(15px);
    animation: headerSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

@keyframes headerSlideIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    width: 130px;
    height: 130px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid #4848bd;
}

.logo img {
    height: 85px;
    object-fit: contain;
    border-radius: 50%;
}

.header h1 {
    color: white;
    font-size: 27px;
    font-weight: bold;
    margin-bottom: 10px;
}

.header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.menu-items {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: menuSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}

@keyframes menuSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item {
    background: linear-gradient(135deg, rgba(62, 62, 101, 0.1) 0%, rgba(15, 31, 57, 0.08) 100%);
    border-radius: 16px;
    padding: 18px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(62, 62, 101, 0.2);
    opacity: 0;
    transform: translateX(-20px);
    animation: menuItemSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    position: relative;
    overflow: hidden;
}

.menu-item:nth-child(1) {
    animation-delay: 1.1s;
}

.menu-item:nth-child(2) {
    animation-delay: 1.3s;
}

.menu-item:nth-child(3) {
    animation-delay: 1.5s;
}

@keyframes menuItemSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.menu-item:hover {
    background: linear-gradient(135deg, rgba(62, 62, 101, 0.2) 0%, rgba(15, 31, 57, 0.15) 100%);
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(62, 62, 101, 0.4);
    box-shadow: 0 10px 25px rgba(62, 62, 101, 0.2);
}

.menu-item i:first-child {
    color: white;
    font-size: 22px;
    margin-right: 15px;
    width: 20px;
    transition: all 0.3s ease;
}

.menu-item span {
    color: white;
    font-size: 18px;
    font-weight: 500;
    flex: 1;
}

.menu-item i:last-child {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 20px;
    padding-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(15px);
    animation: footerSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.5s forwards;
}

@keyframes footerSlideIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer i {
    color: #776ea5;
    margin: 0 5px;
}

#termsPage .header h1 {
    font-size: 33px;
    margin-top: 10px;
    margin-bottom: 15px;
}

#termsPage .header p {
    font-size: 16px;
    margin-bottom: 25px;
}

.product-selection {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(15px);
    animation: productSelectionSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes productSelectionSlideIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-container {
    flex-grow: 1;
    position: relative;
    min-width: 250px;
    max-width: 450px;
}

.dropdown-container select {
    width: 100%;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(15, 31, 57, 0.8) 0%, rgba(62, 62, 101, 0.6) 100%);
    border: 1px solid rgba(62, 62, 101, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 17px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s ease;
}

.dropdown-container::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.9);
    pointer-events: none;
    font-size: 14px;
}

.dropdown-container select:focus {
    outline: none;
    border-color: #0f1f39;
    box-shadow: 0 0 0 3px rgba(15, 31, 57, 0.2);
}

.dropdown-container select option {
    background: #2F2B4A;
    color: white;
}

.back-btn {
    background: linear-gradient(135deg, #3e3e65 0%, #0f1f39 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: center;
    min-width: 150px;
    box-shadow: 0 4px 15px rgba(62, 62, 101, 0.3);
}

.back-btn:hover {
    background: linear-gradient(135deg, #0f1f39 0%, #3e3e65 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(62, 62, 101, 0.4);
}

.terms-section {
    background: linear-gradient(135deg, rgba(15, 31, 57, 0.4) 0%, rgba(62, 62, 101, 0.3) 100%);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    width: 100%;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    animation: termsSectionSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    border: 1px solid rgba(62, 62, 101, 0.15);
    backdrop-filter: blur(10px);
}

.terms-section:nth-child(1) {
    animation-delay: 0.5s;
}

.terms-section:nth-child(2) {
    animation-delay: 0.7s;
}

@keyframes termsSectionSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.terms-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contentArea {
    text-align: left;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    min-height: 100px;
    width: 100%;
}

#contentArea p {
    font-size: 16px;
    text-align: center;
    margin-top: 80px;
}

.terms-section h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-bottom: 20px;
}

.terms-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3e3e65 0%, #0f1f39 100%);
}

.terms-section ul {
    list-style: none;
    padding-left: 0;
}

.terms-section li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.terms-section li::before {
    content: '•';
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .floating-circle:nth-child(1) {
        width: 120px;
        height: 120px;
    }
    
    .floating-circle:nth-child(2) {
        width: 80px;
        height: 80px;
    }
    
    .floating-circle:nth-child(3) {
        width: 100px;
        height: 100px;
    }
    
    .floating-circle:nth-child(4) {
        width: 60px;
        height: 60px;
    }
    
    .page {
        padding: 15px;
    }
    
    .card {
        padding: 25px;
        border-radius: 15px;
    }
    
    .header h1 {
        font-size: 28px;
    }
    
    .logo {
        width: 130px;
        height: 130px;
        padding: 6px;
        border: 2px solid #3e3e65;
    }
    
    .logo img {
        height: 85px;
        object-fit: contain;
        border-radius: 50%;
    }
    
    .menu-item {
        padding: 15px 20px;
    }
    
    .menu-item span {
        font-size: 16px;
    }
    
    .product-selection {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dropdown-container {
        max-width: 100%;
    }
    
    .back-btn {
        width: 100%;
        justify-content: center;
        max-width: 100%;
    }
    
    #termsPage .header h1 {
        font-size: 29px;
    }
    
    #termsPage .container {
        max-width: 100%;
    }
    
    .terms-section {
        padding: 15px;
    }
    
    .terms-section h3 {
        font-size: 20px;
        padding-bottom: 20px;
    }
    
    .terms-section li {
        font-size: 17px;
    }
    
    .terms-content {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .floating-circle:nth-child(1) {
        width: 80px;
        height: 80px;
    }
    
    .floating-circle:nth-child(2) {
        width: 60px;
        height: 60px;
    }
    
    .floating-circle:nth-child(3) {
        width: 70px;
        height: 70px;
    }
    
    .floating-circle:nth-child(4) {
        width: 50px;
        height: 50px;
    }
    
    .page {
        padding: 10px;
    }
    
    .card {
        padding: 35px 20px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .logo {
        width: 115px;
        height: 115px;
        padding: 5px;
        border: 2px solid #3e3e65;
    }
    
    .logo img {
        height: 70px;
        object-fit: contain;
        border-radius: 50%;
    }
    
    .menu-item {
        padding: 15px 20px;
    }
    
    .menu-item span {
        font-size: 16px;
    }
    
    .menu-item i:first-child {
        font-size: 20px;
        margin-right: 10px;
    }
    
    #termsPage .container {
        max-width: 100%;
    }
    
    .terms-section {
        padding: 20px;
    }
    
    .terms-section h3 {
        font-size: 20px;
        padding-bottom: 20px;
    }
    
    .terms-section li {
        font-size: 16px;
    }
    
    .terms-content {
        gap: 8px;
    }
    
    .dropdown-container {
        max-width: 100%;
    }
    
    .back-btn {
        max-width: 100%;
    }
}
