/* Base Styles */
:root {
    --primary-color: #ff4b6e;
    --primary-dark: #e63e5c;
    --secondary-color: #6c63ff;
    --text-color: #e0e0e0;
    --light-text: #a0a0a0;
    --background: #121212;
    --card-bg: #1e1e1e;
    --border-color: #333;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --premium-color: #ffc107;
    --surface-1: #242424;
    --surface-2: #2d2d2d;
    --surface-3: #353535;
    --overlay-bg: rgba(0, 0, 0, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
}

/* App Container */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--background);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-bg);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--premium-color);
    color: #000;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: bold;
}

.premium-badge i {
    margin-right: 4px;
}

.user-actions {
    display: flex;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--light-text);
    cursor: pointer;
    margin-left: 15px;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: var(--primary-color);
    background-color: rgba(255, 75, 110, 0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 15px;
    border: 2px solid var(--primary-color);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Premium Banner */
.premium-banner {
    background: linear-gradient(45deg, var(--primary-dark), var(--secondary-color));
    padding: 12px 20px;
    color: white;
    position: relative;
}

.banner-content {
    display: flex;
    align-items: center;
}

.banner-content i {
    font-size: 24px;
    margin-right: 15px;
    color: var(--premium-color);
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

.banner-text {
    flex: 1;
}

.banner-text h3 {
    font-size: 16px;
    margin-bottom: 2px;
    font-weight: 600;
}

.banner-text p {
    font-size: 12px;
    opacity: 0.9;
}

.close-banner {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    margin-left: 10px;
}

.close-banner:hover {
    opacity: 1;
}

/* Main Content */
main {
    flex: 1;
    overflow: hidden;
    position: relative;
    background-color: var(--background);
}

.view {
    display: none;
    height: 100%;
}

.view.active {
    display: block;
}

/* Profiles View */
#profilesView {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-container {
    flex: 1;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.profile-card {
    width: 100%;
    max-width: 340px;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
}

.profile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    backdrop-filter: blur(5px);
}

.profile-name-age {
    display: flex;
    align-items: baseline;
    margin-bottom: 8px;
}

.profile-name {
    font-size: 26px;
    font-weight: bold;
    margin-right: 10px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.profile-age {
    font-size: 20px;
    opacity: 0.9;
}

.profile-bio {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 20px;
    gap: 15px;
}

.action-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.action-btn:hover {
    transform: scale(1.1);
}

.action-btn.like {
    background-color: var(--primary-color);
    color: white;
}

.action-btn.like:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(230, 62, 92, 0.4);
}

.action-btn.dislike {
    background-color: var(--surface-2);
    color: var(--light-text);
    border: 1px solid var(--border-color);
}

.action-btn.dislike:hover {
    background-color: var(--surface-3);
    color: white;
}

.feature-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.feature-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.premium-feature.locked {
    position: relative;
    overflow: hidden;
}

.premium-feature.locked::after {
    content: '\f023';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    backdrop-filter: blur(2px);
}

.swipe-left {
    transform: translateX(-150%) rotate(-30deg);
    transition: transform 0.5s ease;
}

.swipe-right {
    transform: translateX(150%) rotate(30deg);
    transition: transform 0.5s ease;
}

/* Messages View */
.messages-container {
    display: flex;
    height: 100%;
    background-color: var(--background);
}

.matches-list {
    width: 35%;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    max-height: calc(100vh - 130px);
    background-color: var(--card-bg);
}

.match-item {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.match-item:hover, .match-item.active {
    background-color: var(--surface-1);
}

.match-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.match-item.active img {
    border-color: var(--primary-color);
}

.match-info {
    flex: 1;
    overflow: hidden;
}

.match-name {
    font-weight: bold;
    margin-bottom: 3px;
    color: var(--text-color);
}

.match-last-message {
    font-size: 12px;
    color: var(--light-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--background);
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-bg);
}

.chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--primary-color);
}

.messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 230px);
    background-color: var(--background);
}

.message {
    max-width: 70%;
    margin-bottom: 15px;
    display: flex;
}

.message.sent {
    align-self: flex-end;
}

.message.received {
    align-self: flex-start;
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message.sent .message-content {
    background-color: var(--primary-color);
    color: white;
    border-bottom-right-radius: 5px;
}

.message.received .message-content {
    background-color: var(--surface-2);
    border-bottom-left-radius: 5px;
}

.message-text {
    margin-bottom: 5px;
}

.message-time {
    font-size: 10px;
    opacity: 0.7;
    text-align: right;
}

.message-input-container {
    display: flex;
    padding: 15px;
    border-top: 1px solid var(--border-color);
    background-color: var(--card-bg);
}

.message-input-container input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    background-color: var(--surface-1);
    color: var(--text-color);
}

.message-input-container input:focus {
    border-color: var(--primary-color);
}

.message-input-container button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 20px;
    margin-left: 10px;
    cursor: pointer;
    transition: color 0.2s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-input-container button:hover {
    color: var(--primary-dark);
    background-color: rgba(255, 75, 110, 0.1);
}

/* Premium View */
#premiumView {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 130px);
}

.premium-header {
    text-align: center;
    margin-bottom: 30px;
}

.premium-header h2 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 28px;
}

.premium-header p {
    color: var(--light-text);
}

.premium-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.premium-feature {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.premium-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.premium-feature i {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-feature h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--text-color);
}

.premium-feature p {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 20px;
}

.plans-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.plan {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.plan.popular {
    border: 2px solid var(--premium-color);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--premium-color);
    color: #000;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.plan h3 {
    margin-top: 10px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.price {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.plan p {
    color: var(--light-text);
    margin-bottom: 15px;
    font-size: 14px;
}

.plan ul {
    list-style: none;
    margin-bottom: 25px;
    text-align: left;
    padding-left: 20px;
}

.plan ul li {
    margin-bottom: 10px;
    position: relative;
    font-size: 14px;
    color: var(--text-color);
}

.plan ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--success-color);
    position: absolute;
    left: -20px;
}

.active-subscription {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
    border: 1px solid var(--border-color);
}

.active-subscription i {
    font-size: 48px;
    color: var(--premium-color);
    margin-bottom: 20px;
}

.active-subscription h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 24px;
}

.active-subscription p {
    margin-bottom: 10px;
    color: var(--light-text);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-around;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 12px 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

nav button {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-text);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 8px 0;
    width: 33.33%;
}

nav button i {
    font-size: 22px;
    margin-bottom: 5px;
}

nav button.active {
    color: var(--primary-color);
}

nav button.active i {
    transform: scale(1.1);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-bg);
    z-index: 100;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 15px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--light-text);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-modal:hover {
    color: var(--primary-color);
    background-color: rgba(255, 75, 110, 0.1);
}

/* Auth Modal */
.auth-modal {
    width: 350px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--light-text);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    display: none;
    padding: 25px 20px;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--light-text);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background-color: var(--surface-1);
    color: var(--text-color);
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-bottom: 15px;
}

/* Match Modal */
.match-modal {
    width: 320px;
    padding: 35px 30px;
    text-align: center;
}

.match-modal h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 28px;
}

.match-images {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.match-images img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.match-images img:first-child {
    margin-right: -25px;
    z-index: 1;
}

.match-modal p {
    margin-bottom: 25px;
    color: var(--light-text);
    font-size: 16px;
}

.match-actions {
    display: flex;
    gap: 15px;
}

/* Likes Modal */
.likes-modal {
    width: 400px;
    max-height: 80vh;
}

.likes-list {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.like-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.like-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.like-item img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--border-color);
}

.like-info {
    flex: 1;
}

.like-name-age {
    display: flex;
    align-items: baseline;
    margin-bottom: 5px;
}

.like-name {
    font-weight: bold;
    margin-right: 10px;
    color: var(--text-color);
}

.like-age {
    color: var(--light-text);
}

.like-bio {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 15px;
}

.like-actions {
    display: flex;
    gap: 10px;
}

/* Settings Modal */
.settings-modal {
    width: 350px;
}

.current-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 25px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.current-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buttons */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    font-weight: 600;
}

.btn.primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 10px rgba(230, 62, 92, 0.3);
}

.btn.primary:hover {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
    box-shadow: 0 6px 15px rgba(230, 62, 92, 0.4);
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn.secondary:hover {
    background-color: rgba(255, 75, 110, 0.1);
    transform: translateY(-2px);
}

.btn.small {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 6px;
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--light-text);
    height: 100%;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
    color: var(--secondary-color);
}

.empty-state p {
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 18px;
    color: var(--text-color);
}

.empty-state .subtitle {
    font-size: 14px;
    opacity: 0.7;
}

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--light-text);
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--card-bg);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}
.notification i {
    margin-right: 10px;
    font-size: 18px;
}

.notification.success i {
    color: var(--success-color);
}

.notification.error i {
    color: var(--error-color);
}

.notification.warning i {
    color: var(--warning-color);
}

.notification.info i {
    color: var(--secondary-color);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-bg);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    backdrop-filter: blur(5px);
}

.overlay-content {
    text-align: center;
    padding: 40px;
    background-color: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    max-width: 90%;
}

.overlay-content h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.counter-container {
    margin-bottom: 25px;
    position: relative;
}

#frenzyCounter {
    font-size: 72px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: var(--premium-color);
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.counter-container span:last-child {
    font-size: 16px;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.overlay-content p {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 20px;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.profile-card {
    animation: fadeIn 0.5s ease;
}

.match-modal h2 {
    animation: pulse 2s infinite;
}

.premium-feature:hover i {
    animation: pulse 1s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Additional Responsive Styles */
@media (max-width: 480px) {
    .premium-features {
        grid-template-columns: 1fr;
    }
    
    .plans-container {
        grid-template-columns: 1fr;
    }
    
    .matches-list {
        width: 40%;
    }
    
    .match-item img {
        width: 40px;
        height: 40px;
    }
    
    .match-name {
        font-size: 14px;
    }
    
    .match-last-message {
        font-size: 11px;
    }
    
    .action-btn {
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
    
    .feature-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .profile-card {
        height: 400px;
    }
    
    .profile-name {
        font-size: 22px;
    }
    
    .profile-age {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .matches-list {
        width: 45%;
    }
    
    .match-item img {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }
    
    .match-name {
        font-size: 13px;
    }
    
    .action-btn {
        width: 50px;
        height: 50px;
    }
    
    .feature-btn {
        width: 36px;
        height: 36px;
    }
    
    .profile-card {
        height: 380px;
    }
}

/* Dark Mode Specific Enhancements */
.logo-text {
    text-shadow: 0 0 10px rgba(255, 75, 110, 0.3);
}

.premium-badge {
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 0, 0, 0) 20%, 
        rgba(0, 0, 0, 0) 50%, 
        rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

.profile-info {
    z-index: 2;
}

/* Focus States for Accessibility */
button:focus, 
input:focus, 
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
    outline: none;
}

/* Hover Effects */
.btn.primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(230, 62, 92, 0.3);
}

.btn.secondary:active {
    transform: translateY(1px);
}

/* Additional Interactive Elements */
.premium-feature .btn {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}

.premium-feature:hover .btn {
    opacity: 1;
    transform: translateY(0);
}

/* Frenzy Mode Specific Styles */
.frenzy-active .profile-card {
    animation: pulse 0.5s infinite alternate;
}

.frenzy-active .action-buttons {
    animation: pulse 0.5s 0.25s infinite alternate;
}

/* Boost Animation */
@keyframes boost {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(108, 99, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(108, 99, 255, 0);
    }
}

.boosted {
    animation: boost 2s infinite;
}

/* Match Animation */
@keyframes matchPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 75, 110, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 75, 110, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 75, 110, 0);
    }
}

.match-images img {
    animation: matchPulse 2s infinite;
}

/* Typing Indicator in Chat */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    background-color: var(--surface-2);
    padding: 8px 12px;
    border-radius: 18px;
    margin-bottom: 15px;
    align-self: flex-start;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: var(--light-text);
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
}

.typing-indicator span:nth-child(1) {
    animation: typing 1s infinite 0s;
}

.typing-indicator span:nth-child(2) {
    animation: typing 1s infinite 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation: typing 1s infinite 0.4s;
}

@keyframes typing {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

/* New Message Notification */
.new-message-badge {
    background-color: var(--primary-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    position: absolute;
    top: 10px;
    right: 10px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(255, 75, 110, 0.5);
}

/* Profile Card Swipe Indicators */
.swipe-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
}

.swipe-indicator.left {
    left: 20px;
}

.swipe-indicator.right {
    right: 20px;
}

.profile-card:hover .swipe-indicator {
    opacity: 0.8;
}

/* Premium Glow Effects */
.premium-active {
    position: relative;
    overflow: hidden;
}

.premium-active::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        rgba(255, 193, 7, 0.1), 
        transparent 30%
    );
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(1turn);
    }
}

/* Print Styles */
@media print {
    .app-container {
        box-shadow: none;
    }
    
    header, nav, .premium-banner {
        display: none;
    }
    
    main {
        overflow: visible;
    }
    
    .profile-card {
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .action-buttons {
        display: none;
    }
}