/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* Header and Navigation */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: white;
    font-weight: 700;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #ffd700;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-highlight {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    display: inline-block;
}

/* Button Styles */
.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: #ffd700;
    color: #333;
}

.btn-primary:hover {
    background: #ffed4a;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Styles */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d3748;
}

/* Comparison Section */
.comparison {
    background: white;
}

.comparison-intro, .recommender-intro, .calculator-intro, .coin-query-intro, .tutorials-intro, .offers-intro, .security-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6;
}

.hero-seo-text {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.seo-footer {
    font-size: 0.9rem;
    color: #a0aec0;
    margin-top: 1rem;
    text-align: center;
}

.comparison-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 10px;
}

.comparison-actions {
    display: flex;
    gap: 1rem;
}

.comparison-table {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th {
    background: #667eea;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

tr:hover {
    background: #f7fafc;
}

.rating {
    display: flex;
    gap: 2px;
}

.star {
    color: #ffd700;
    font-size: 1.2rem;
}

.platform-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Recommender Section */
.recommender {
    background: #f7fafc;
}

.recommender-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px 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: #2d3748;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
}

.recommendation-result {
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Calculator Section */
.calculator {
    background: white;
}

.calculator-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.calculator-result {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 2rem;
    background: #f7fafc;
    border-radius: 15px;
}

.fee-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.fee-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.fee-card h4 {
    color: #667eea;
    margin-bottom: 1rem;
}

.fee-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.fee-savings {
    color: #48bb78;
    font-weight: 600;
}

/* Coin Query Section */
.coin-query {
    background: #f7fafc;
}

.query-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    align-items: end;
}

.query-form .form-group {
    flex: 1;
}

.coin-result {
    max-width: 800px;
    margin: 2rem auto 0;
}

.coin-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.coin-platform {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.coin-platform h4 {
    color: #667eea;
    margin-bottom: 1rem;
}

.trading-pairs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.trading-pair {
    background: #e2e8f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Tutorials Section */
.tutorials {
    background: white;
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
}

.tutorial-category h3 {
    color: #667eea;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.tutorial-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tutorial-item {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.tutorial-item h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.tutorial-item p {
    color: #4a5568;
    margin-bottom: 1rem;
}

/* Offers Section */
.offers {
    background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.offer-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
}

.offer-card.featured {
    border: 3px solid #ffd700;
    transform: scale(1.05);
}

.offer-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #ffd700;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
}

.offer-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.offer-details {
    margin-bottom: 1.5rem;
}

.discount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #48bb78;
    margin-bottom: 0.5rem;
}

.bonus {
    color: #667eea;
    font-weight: 600;
}

.invite-code {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.invite-code label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
}

.code-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.code {
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.1rem;
}

.code-container button {
    background: #48bb78;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.register-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Security Section */
.security {
    background: white;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
}

.security-card {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 15px;
}

.security-card h3 {
    color: #667eea;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.platform-detail {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
}

.platform-detail h4 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.platform-detail p {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.tip {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid #48bb78;
}

.tip h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.tip p {
    color: #4a5568;
}

/* Friendly Links Section */
.friendly-links {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.friendly-links h2 {
    text-align: center;
    margin-bottom: 20px;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
}

.friendly-links-intro {
    text-align: center;
    margin-bottom: 60px;
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.link-category {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.link-category h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.friendly-link {
    display: block;
    padding: 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.friendly-link:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    text-decoration: none;
    color: white;
}

.link-title {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #ffffff;
}

.link-desc {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.4;
}

.partnership-note {
    text-align: center;
    margin-top: 40px;
    padding: 25px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}

.partnership-note p {
    margin: 0;
    color: rgba(255,255,255,0.9);
    font-style: italic;
}

.partnership-note small {
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffd700;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 2rem;
    text-align: center;
}

.disclaimer {
    font-size: 0.9rem;
    color: #a0aec0;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #667eea;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 200px;
    }
    
    .comparison-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .query-form {
        flex-direction: column;
    }
    
    .query-form .form-group {
        width: 100%;
    }
    
    .tutorials-grid {
        grid-template-columns: 1fr;
    }
    
    .security-grid {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .offer-card.featured {
        transform: none;
    }
    
    .code-container {
        flex-direction: column;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background: #48bb78;
}

.notification.error {
    background: #f56565;
}

.notification.info {
    background: #667eea;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #000;
}

/* Table Responsive */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
}

/* Content Pages Styles */
.content-section {
    padding: 80px 0;
    background: white;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.content-card {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
}

.content-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.platforms-section {
    padding: 80px 0;
    background: #f7fafc;
}

.platform-detailed {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.platform-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.platform-header h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.platform-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.platform-rating .stars {
    color: #ffd700;
    font-size: 1.2rem;
}

.platform-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.sec { background: #48bb78; }
.badge.nasdaq { background: #ed8936; }
.badge.insurance { background: #38b2ac; }
.badge.fca { background: #9f7aea; }
.badge.safu { background: #f6ad55; }
.badge.never-hacked { background: #68d391; }

.platform-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.platform-features ul {
    list-style: none;
    padding: 0;
}

.platform-features li {
    margin-bottom: 0.75rem;
    padding-left: 1rem;
}

.platform-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 10px;
}

.stat h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.stat p {
    font-weight: 700;
    color: #2d3748;
}

.platform-offer {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

.offer-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.offer-code {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.offer-benefit {
    margin-bottom: 1rem;
}

.bonus-info {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* Guide Section */
.guide-section {
    padding: 80px 0;
    background: white;
}

.guide-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 15px;
}

.step-number {
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: #f7fafc;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.faq-item h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.cta-footnote {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 1rem;
}

/* Security specific styles */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.security-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border-top: 4px solid #667eea;
}

.security-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.security-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.security-comparison-table th {
    background: #667eea;
    color: white;
    padding: 1rem;
    text-align: left;
}

.security-comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.score.excellent { color: #48bb78; font-weight: 700; }
.score.good { color: #ed8936; font-weight: 700; }
.score.average { color: #f6ad55; font-weight: 700; }

.top-security {
    background: #f0fff4;
}

.good-security {
    background: #fefcbf;
}

/* Responsive */
@media (max-width: 768px) {
    .platform-content {
        grid-template-columns: 1fr;
    }
    
    .platform-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .platform-stats {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 80%;
        max-width: 300px;
    }
} 