/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: transparent;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header.scrolled .logo h1,
.header.scrolled .nav-link {
    color: #333;
}

.header.scrolled .logo i {
    color: #0066ff;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
    color: white;
    transition: color 0.3s ease;
}

.logo h1 {
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: white;
}

.header.scrolled .nav-link {
    color: #666;
}

.header.scrolled .nav-link:hover {
    color: #0066ff;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #0066ff;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.2);
}

.btn-primary:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Section - Omnyfy Style */
.hero {
    background: linear-gradient(135deg, #0066ff 0%, #4d7fff 50%, #6b84db 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
}

/* Main background shape - large organic blob */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 80%;
    height: 120%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50% 40% 60% 30%;
    transform: rotate(-15deg);
    animation: morphShape 20s ease-in-out infinite;
}

/* Secondary background shape */
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -25%;
    width: 70%;
    height: 100%;
    background: rgba(73, 235, 177, 0.08);
    border-radius: 60% 30% 70% 40%;
    transform: rotate(25deg);
    animation: morphShape 25s ease-in-out infinite reverse;
}

/* Organic shape morphing animation */
@keyframes morphShape {
    0%, 100% {
        border-radius: 50% 40% 60% 30%;
        transform: rotate(-15deg) scale(1);
    }
    25% {
        border-radius: 40% 60% 30% 50%;
        transform: rotate(-10deg) scale(1.05);
    }
    50% {
        border-radius: 60% 30% 50% 40%;
        transform: rotate(-20deg) scale(0.95);
    }
    75% {
        border-radius: 30% 50% 40% 60%;
        transform: rotate(-5deg) scale(1.02);
    }
}

/* Floating abstract elements */
.hero-bg-element-1 {
    position: absolute;
    top: 15%;
    left: 10%;
    width: 300px;
    height: 200px;
    background: linear-gradient(45deg, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 40% 60% 30% 70%;
    animation: floatRotate 15s ease-in-out infinite;
    transform: rotate(30deg);
}

.hero-bg-element-2 {
    position: absolute;
    top: 60%;
    right: 15%;
    width: 250px;
    height: 180px;
    background: linear-gradient(135deg, rgba(73,235,177,0.08) 0%, transparent 60%);
    border-radius: 30% 70% 60% 40%;
    animation: floatRotate 18s ease-in-out infinite reverse;
    transform: rotate(-20deg);
}

.hero-bg-element-3 {
    position: absolute;
    top: 40%;
    left: 70%;
    width: 200px;
    height: 150px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, transparent 50%);
    border-radius: 70% 30% 50% 80%;
    animation: floatRotate 12s ease-in-out infinite;
    transform: rotate(45deg);
}

/* Additional wave element */
.hero-wave-element {
    position: absolute;
    bottom: 30%;
    left: 5%;
    width: 400px;
    height: 100px;
    background: linear-gradient(60deg, rgba(255,255,255,0.03) 0%, transparent 40%);
    border-radius: 100px 50px 80px 60px;
    animation: waveFlow 10s ease-in-out infinite;
    transform: rotate(10deg);
}

/* Floating and rotating animation */
@keyframes floatRotate {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(5deg);
    }
    66% {
        transform: translateY(10px) rotate(-3deg);
    }
}

/* Wave flowing animation */
@keyframes waveFlow {
    0%, 100% {
        transform: translateX(0px) rotate(10deg) scaleX(1);
    }
    50% {
        transform: translateX(30px) rotate(15deg) scaleX(1.1);
    }
}

/* SVG background shapes container */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat span {
    font-size: 0.9rem;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Trading Activity Section */
.trading-activity {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafe 100%);
    border-top: 1px solid #e6f0ff;
    position: relative;
    overflow: hidden;
}

.trading-activity::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #28a745, #20c997, #0066ff);
}

.activity-header {
    text-align: center;
    margin-bottom: 3rem;
}

.activity-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #28a745, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.activity-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.activity-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.activity-stat {
    text-align: center;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.1);
    border: 1px solid #e6f0ff;
    min-width: 150px;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 0.5rem;
    animation: countUp 2s ease-out;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.transactions-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 102, 255, 0.12);
    padding: 2rem;
    border: 1px solid #e6f0ff;
}

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.transactions-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #28a745;
    font-weight: 600;
    font-size: 0.9rem;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #28a745;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.transactions-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 2rem;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f8fafe;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    transition: all 0.3s ease;
    animation: slideInRight 0.5s ease-out;
}

.transaction-item:hover {
    background: #e6f0ff;
    transform: translateX(5px);
}

.transaction-info {
    flex: 1;
}

.transaction-domain {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.transaction-details {
    font-size: 0.9rem;
    color: #666;
}

.transaction-price {
    font-weight: 700;
    color: #28a745;
    font-size: 1.2rem;
}

.transaction-time {
    font-size: 0.8rem;
    color: #999;
    text-align: right;
}

.activity-cta {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafe 0%, #e6f0ff 100%);
    border-radius: 12px;
    border: 1px solid #e6f0ff;
}

.activity-cta p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary-dark {
    background: #333;
    color: white;
    border: 2px solid #333;
}

.btn-secondary-dark:hover {
    background: #555;
    border-color: #555;
    transform: translateY(-2px);
}

/* Animation for transactions */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success transaction variant */
.transaction-item.sold {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #f0fff4 100%);
}

.transaction-item.bought {
    border-left-color: #0066ff;
    background: linear-gradient(135deg, #f8fafe 0%, #e6f0ff 100%);
}

/* Scrollbar styling for transactions list */
.transactions-list::-webkit-scrollbar {
    width: 6px;
}

.transactions-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.transactions-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.transactions-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* How It Works - Flowchart Design */
.how-it-works {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafe 0%, #e6f0ff 100%);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0066ff, #49ebb1);
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.flowchart-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.flowchart-row:last-child {
    margin-bottom: 0;
}

/* Flow connector lines */
.flowchart-row::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    right: 20%;
    height: 2px;
    transform: translateY(-1px);
    z-index: 1;
}

/* Seller flow lines - Red theme */
.steps-container > div:nth-child(2) .flowchart-row::after {
    background: linear-gradient(90deg, #ff6b6b, #ff8787);
}

/* Buyer flow lines - Green theme */
.steps-container > div:nth-child(4) .flowchart-row::after {
    background: linear-gradient(90deg, #51cf66, #69db7c);
}

.step-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 102, 255, 0.1);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    z-index: 2;
    width: 280px;
    transition: all 0.4s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.2);
    border-color: #0066ff;
}

.step-card.seller {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
    border-left: 4px solid #ff6b6b;
}

.step-card.buyer {
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
    border-left: 4px solid #51cf66;
}

/* Seller theme - Red/Orange */
.step-card.seller .step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.step-card.seller .step-icon {
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.step-card.seller:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

.step-card.seller:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
    border-left-color: #ff6b6b;
}

/* Buyer theme - Green */
.step-card.buyer .step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #51cf66, #69db7c);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(81, 207, 102, 0.4);
}

.step-card.buyer .step-icon {
    background: linear-gradient(135deg, #51cf66, #69db7c);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(81, 207, 102, 0.3);
    transition: all 0.3s ease;
}

.step-card.buyer:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(81, 207, 102, 0.4);
}

.step-card.buyer:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(81, 207, 102, 0.2);
    border-color: #51cf66;
    border-left-color: #51cf66;
}

/* General step card styles */
.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0066ff, #49ebb1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.step-icon {
    background: linear-gradient(135deg, #0066ff, #49ebb1);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.2);
    transition: all 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 102, 255, 0.3);
}

.step-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.step-description {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Arrow connectors - removed floating arrows */
.arrow-connector {
    display: none;
}

/* User type headers */
.user-type-header {
    text-align: center;
    margin-bottom: 3rem;
}

.user-type-badge {
    display: inline-block;
    padding: 0.8rem 2rem;
    color: white;
    border-radius: 30px;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #0066ff, #49ebb1);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.2);
}

/* Seller badge - First user-type-header */
.steps-container .user-type-header:nth-child(1) .user-type-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Buyer badge - Third user-type-header (after seller section) */
.steps-container .user-type-header:nth-child(3) .user-type-badge {
    background: linear-gradient(135deg, #51cf66, #69db7c);
    box-shadow: 0 4px 15px rgba(81, 207, 102, 0.3);
}

.process-flow {
    position: relative;
    margin-top: 2rem;
}

/* Animated flow lines */
@keyframes flowAnimation {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.animated-flow::after {
    background: linear-gradient(90deg, 
        transparent 0%, 
        #0066ff 25%, 
        #49ebb1 50%, 
        #0066ff 75%, 
        transparent 100%);
    background-size: 200% 100%;
    animation: flowAnimation 3s ease-in-out infinite;
}

/* Success indicators */
.success-indicator {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #28a745;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background: linear-gradient(180deg, #fafafc 0%, #f8f9fa 100%);
    position: relative;
}

.benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0066ff, #6b84db);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f2f5;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.15);
    border-color: #0066ff;
}

.benefit-card i {
    font-size: 3rem;
    color: #0066ff;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

/* Sell Section */
.sell-section {
    padding: 80px 0;
    background: white;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.sell-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-note {
    color: #666;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Authentication Notice in Forms */
.auth-notice {
    background: rgba(115, 235, 177, 0.1);
    border: 1px solid rgba(115, 235, 177, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.auth-notice p {
    margin: 0;
    color: var(--text-dark);
}

.auth-notice a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

/* Browse Section */
.browse-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #fafafc 0%, #f8f9fa 100%);
}

.search-container {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-bar input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
}

.search-bar input:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filters select {
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

/* Domain Listings */
.domain-listings {
    display: grid;
    gap: 1.5rem;
}

.domain-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f2f5;
}

.domain-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.12);
    border-color: #e6f0ff;
}

.domain-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.domain-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.domain-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0066ff;
}

.domain-category {
    display: inline-block;
    background: #e9ecef;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.domain-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.domain-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.domain-date {
    color: #999;
    font-size: 0.875rem;
}

.no-domains {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-domains i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Authentication and User Interface Styles */
.auth-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.user-nav {
    display: flex;
    align-items: center;
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-greeting {
    color: var(--text-light);
    font-size: 0.9rem;
}

.user-menu-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.user-menu-btn:hover {
    background: rgba(115, 235, 177, 0.1);
    color: #fff;
}

.user-dropdown {
    position: relative;
}

.user-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.5rem 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s ease;
}

.user-dropdown-content a:hover {
    background: rgba(115, 235, 177, 0.1);
    color: var(--primary-color);
}

.user-dropdown-content a i {
    font-size: 0.9rem;
    width: 16px;
}

/* Authentication Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: scale(0.8) translateY(-50px);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.modal-content .close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-content .close:hover {
    color: var(--text-dark);
}

.modal-content .form-group {
    margin-bottom: 1rem;
}

.modal-content .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.modal-content .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.modal-content .form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.password-requirements {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.3;
}

/* Analytics Dashboard Styles */
.analytics-modal {
    max-width: 900px;
    width: 95%;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.analytics-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.analytics-card h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.stat-item, .trend-item, .activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.stat-item:last-child, .trend-item:last-child, .activity-item:last-child {
    border-bottom: none;
}

.stat-label, .trend-label, .activity-label {
    font-weight: 500;
    color: #495057;
}

.stat-value, .trend-value, .activity-value {
    font-weight: bold;
    color: var(--primary-color);
}

/* Domain Valuation Styles */
.valuation-modal {
    max-width: 700px;
    width: 95%;
}

.valuation-results {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.valuation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.valuation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.valuation-label {
    font-weight: 500;
    color: #495057;
}

.valuation-value {
    font-weight: bold;
    color: var(--primary-color);
}

.valuation-explanation {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.valuation-explanation h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
}

.valuation-explanation ul {
    margin: 0;
    padding-left: 1.5rem;
}

.valuation-explanation li {
    margin-bottom: 0.5rem;
    color: #495057;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .valuation-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-modal, .valuation-modal {
        margin: 2% auto;
        width: 98%;
    }
}

.modal-content .btn-full {
    width: 100%;
    margin-top: 1rem;
}

.modal-footer-text {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.modal-footer-text a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Domain Cards Enhancements */
.owner-badge {
    background: linear-gradient(135deg, #73ebbd, #57ca9d);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.domain-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.domain-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.owner-info {
    background: rgba(115, 235, 177, 0.1);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.owner-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Loading and Message States */
.loading-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff4757;
    color: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.error-message.show {
    transform: translateX(0);
}

.error-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 0.5rem;
}

.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(115, 235, 177, 0.3);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.success-message.show {
    transform: translateX(0);
}

.success-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.success-close:hover {
    opacity: 1;
}

/* Button Loading State */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn .fa-spinner {
    margin-right: 0.5rem;
}

/* Mobile Responsiveness for New Elements */
@media (max-width: 768px) {
    .auth-nav {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .auth-nav .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .user-greeting {
        display: none;
    }
    
    .domain-actions {
        justify-content: center;
    }
    
    .owner-actions {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .error-message,
    .success-message {
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }
    
    .error-message.show,
    .success-message.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat strong {
        font-size: 1.25rem;
    }
    
    .stat span {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .activity-title {
        font-size: 1.75rem;
    }
    
    .activity-stats {
        gap: 1.5rem;
    }
    
    .activity-stat {
        min-width: 150px;
        padding: 1rem 1.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .transactions-container {
        padding: 1rem;
    }
    
    .transaction-domain {
        font-size: 1rem;
    }
    
    .transaction-price {
        font-size: 1.1rem;
    }
    
    .sell-form {
        padding: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Omnyfy-style Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animate {
    opacity: 1;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.pulse-effect {
    animation: pulse 2s ease-in-out infinite;
}

/* Apply animations to elements */
.hero-content {
    animation: fadeInUp 1s ease-out forwards;
}

.hero-stats .stat {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-stats .stat:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-stats .stat:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-stats .stat:nth-child(3) {
    animation-delay: 0.6s;
}

.step {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.step.animate {
    opacity: 1;
    transform: translateY(0);
}

.benefit-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.benefit-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.domain-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.domain-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.form-container {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.form-container.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Floating icons animation */
.benefit-card i {
    transition: transform 0.3s ease;
}

.benefit-card:hover i {
    transform: translateY(-5px);
    animation: float 2s ease-in-out infinite;
}

/* Button hover animations */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Scroll reveal animation delays */
.benefit-card:nth-child(1) { transition-delay: 0.1s; }
.benefit-card:nth-child(2) { transition-delay: 0.2s; }
.benefit-card:nth-child(3) { transition-delay: 0.3s; }
.benefit-card:nth-child(4) { transition-delay: 0.4s; }

.step:nth-child(1) { transition-delay: 0.1s; }
.step:nth-child(2) { transition-delay: 0.2s; }
.step:nth-child(3) { transition-delay: 0.3s; }

/* Background element animations */

.benefits::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(0, 102, 255, 0.05);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    animation-delay: -4s;
}

/* Section title animations */
.section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
    transition-delay: 0.2s;
}

.section-subtitle.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Search bar focus animation */
.search-bar input {
    position: relative;
    overflow: hidden;
}

.search-bar input:focus {
    transform: scale(1.02);
}

/* Success message slide-in animation */
.success-message {
    animation: slideInRight 0.5s ease-out forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.success-message.show {
    animation: slideInRight 0.5s ease-out forwards;
}

/* Loading state for domain cards */
.domain-listings.loading .domain-card {
    opacity: 0.5;
    pointer-events: none;
}

/* Stagger animation for domain cards */
.domain-card:nth-child(1) { transition-delay: 0.1s; }
.domain-card:nth-child(2) { transition-delay: 0.2s; }
.domain-card:nth-child(3) { transition-delay: 0.3s; }
.domain-card:nth-child(4) { transition-delay: 0.4s; }
.domain-card:nth-child(5) { transition-delay: 0.5s; }

/* Form input focus animations */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    transform: scale(1.02);
}

/* Logo pulse on load */
.logo {
    animation: pulse 2s ease-in-out;
}

/* Stats counter animation */
.stat strong {
    animation: scaleIn 0.8s ease-out forwards;
}
