/* Leadership Main */
.leadership-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

/* Hero Section */
.leadership-hero {
    text-align: center;
    margin-bottom: 60px;
}

.leadership-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
}

.leadership-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

/* Leadership Section */
.leadership-section {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
}

.section-header {
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Rank Cards */
.rank-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.rank-card {
    background: rgba(64, 224, 208, 0.1);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.rank-card:hover {
    border-color: rgba(64, 224, 208, 0.5);
    background: rgba(64, 224, 208, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(64, 224, 208, 0.2);
}

.rank-card.next-rank {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.3);
}

.rank-card.next-rank:hover {
    border-color: rgba(255, 165, 0, 0.5);
    background: rgba(255, 165, 0, 0.15);
}

.rank-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.rank-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rank-value {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.metric-card {
    background: rgba(64, 224, 208, 0.05);
    border: 1px solid rgba(64, 224, 208, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: rgba(64, 224, 208, 0.4);
    background: rgba(64, 224, 208, 0.1);
    transform: translateY(-2px);
}

.metric-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-value {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

/* Progress Section */
.progress-section {
    background: rgba(64, 224, 208, 0.05);
    border: 1px solid rgba(64, 224, 208, 0.2);
    border-radius: 16px;
    padding: 30px;
}

.progress-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
}

.progress-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.progress-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.progress-value {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(64, 224, 208, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #8a2be2 0%, #40E0D0 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.progress-fill.green {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.progress-percentage {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}

.withdraw-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
    border: none;
    padding: 16px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.withdraw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.5);
}

/* Table Container */
.table-container {
    overflow-x: auto;
}

.downlines-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.downlines-table thead {
    background: rgba(64, 224, 208, 0.1);
}

.downlines-table th {
    padding: 15px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(64, 224, 208, 0.3);
}

.downlines-table td {
    padding: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(64, 224, 208, 0.1);
}

.downlines-table tbody tr {
    transition: all 0.3s ease;
}

.downlines-table tbody tr:hover {
    background: rgba(64, 224, 208, 0.05);
}

.username-cell {
    font-weight: 600;
    color: #ffffff;
}

.rank-badge {
    font-size: 20px;
}

.table-end-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(64, 224, 208, 0.2);
}

/* Ranks Grid */
.ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.rank-item {
    background: rgba(64, 224, 208, 0.05);
    border: 1px solid rgba(64, 224, 208, 0.2);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.rank-item:hover {
    border-color: rgba(64, 224, 208, 0.4);
    background: rgba(64, 224, 208, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(64, 224, 208, 0.2);
}

.rank-item-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #8a2be2 0%, #40E0D0 100%);
}

.rank-item-icon.inviter {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.rank-item-icon.promoter {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.rank-item-icon.leader {
    background: linear-gradient(135deg, #8a2be2 0%, #40E0D0 100%);
}

.rank-item-icon.partner {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
}

.rank-item-icon.star {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.rank-item-icon.royal-star {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.rank-item-icon.crown-star {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.rank-item-content {
    flex: 1;
}

.rank-item-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.rank-item-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

/* Differential Logic Section */
.differential-info-card {
    background: rgba(64, 224, 208, 0.1);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.info-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.info-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Example Calculation */
.example-calculation {
    background: rgba(64, 224, 208, 0.05);
    border: 1px solid rgba(64, 224, 208, 0.2);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
}

.example-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
}

.example-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.example-row {
    display: flex;
    gap: 15px;
    font-size: 15px;
}

.example-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    min-width: 100px;
}

.example-value {
    color: #ffffff;
}

.example-result {
    background: rgba(64, 224, 208, 0.15);
    border: 2px solid rgba(64, 224, 208, 0.4);
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
    text-align: center;
}

.result-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.result-calculation {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
}

.result-value {
    font-size: 32px;
    font-weight: 800;
    color: #4ade80;
}

/* Principles Grid */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.principle-card {
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s ease;
}

.principle-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.principle-card.red {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.principle-card.blue {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.principle-card.purple {
    background: rgba(64, 224, 208, 0.1);
    border: 1px solid rgba(64, 224, 208, 0.3);
}

.principle-card.green {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.principle-icon {
    font-size: 32px;
}

.principle-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.principle-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Key Points */
.key-points {
    background: rgba(64, 224, 208, 0.05);
    border: 1px solid rgba(64, 224, 208, 0.2);
    border-radius: 16px;
    padding: 30px;
}

.key-points-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.key-points-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.key-points-list li {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.key-points-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #40E0D0;
    font-weight: bold;
    font-size: 18px;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 768px) {
    .leadership-title {
        font-size: 32px;
    }

    .leadership-section {
        padding: 25px;
    }

    .rank-cards {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .downlines-table {
        font-size: 12px;
    }

    .downlines-table th,
    .downlines-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .leadership-main {
        padding: 40px 15px 60px;
    }

    .leadership-section {
        padding: 20px 15px;
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .downlines-table {
        min-width: 700px;
        font-size: 11px;
    }

    .downlines-table th,
    .downlines-table td {
        padding: 10px 6px;
        white-space: nowrap;
    }

    .section-title {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    .rank-cards {
        gap: 15px;
    }

    .rank-card {
        padding: 20px;
    }
}

