/* Commission Policy Modal Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.commission-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.commission-modal-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
}

.commission-modal-bg {
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 16px;
    filter: blur(20px);
    opacity: 0.6;
    z-index: 0;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    }
    50% {
        background: linear-gradient(135deg, #764ba2 0%, #f093fb 50%, #667eea 100%);
    }
}

.commission-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
    z-index: 1;
}

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

.commission-modal-container {
    display: flex;
    gap: 40px;
    padding: 40px;
    align-items: flex-start;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Illustration Section */
.commission-illustration {
    flex: 0 0 300px;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    overflow: hidden;
}

.commission-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder for fallback animation */
.commission-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.person-head {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #f4a460;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.person-head::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
    top: 15px;
    left: 12px;
}

.person-head::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
    top: 15px;
    right: 12px;
}

.person-body {
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 60px;
    background: #2c3e50;
    border-radius: 8px;
}

.person-arm-left {
    position: absolute;
    top: 65px;
    left: 20px;
    width: 35px;
    height: 12px;
    background: #f4a460;
    border-radius: 6px;
    transform: rotate(-30deg);
    animation: armWave 2s ease-in-out infinite;
}

.person-arm-right {
    position: absolute;
    top: 65px;
    right: 20px;
    width: 35px;
    height: 12px;
    background: #f4a460;
    border-radius: 6px;
    transform: rotate(30deg);
    animation: armWave 2s ease-in-out infinite 0.3s;
}

@keyframes armWave {
    0%, 100% {
        transform: rotate(-30deg);
    }
    50% {
        transform: rotate(30deg);
    }
}

.person-hand-left {
    position: absolute;
    top: 55px;
    left: 5px;
    width: 25px;
    height: 25px;
    background: #f4a460;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    animation: handFloat 2.5s ease-in-out infinite;
}

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

.person-document {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) rotate(-15deg);
    width: 60px;
    height: 80px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: documentBounce 3s ease-in-out infinite;
}

.person-document::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 3px;
    background: #ddd;
    top: 15px;
    left: 10%;
}

.person-document::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 3px;
    background: #ddd;
    top: 25px;
    left: 10%;
}

@keyframes documentBounce {
    0%, 100% {
        transform: translateX(-50%) rotate(-15deg) translateY(0);
    }
    50% {
        transform: translateX(-50%) rotate(-15deg) translateY(-10px);
    }
}

/* Money Coins */
.money-coin-green {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    animation: coinFloat 3s ease-in-out infinite;
}

.coin-symbol {
    font-size: 48px;
    color: white;
    font-weight: bold;
}

@keyframes coinFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-15px) translateX(10px);
    }
    50% {
        transform: translateY(-25px) translateX(0);
    }
    75% {
        transform: translateY(-15px) translateX(-10px);
    }
}

.money-coin-orange {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    animation: coinSpin 4s linear infinite;
}

.coin-chart {
    display: flex;
    gap: 6px;
    align-items: flex-end;
}

.chart-bar {
    width: 8px;
    background: white;
    border-radius: 2px;
    animation: barGrow 2s ease-in-out infinite;
}

.chart-bar:nth-child(1) {
    height: 15px;
    animation-delay: 0s;
}

.chart-bar:nth-child(2) {
    height: 20px;
    animation-delay: 0.3s;
}

.chart-bar:nth-child(3) {
    height: 12px;
    animation-delay: 0.6s;
}

@keyframes barGrow {
    0%, 100% {
        height: 10px;
    }
    50% {
        height: 25px;
    }
}

@keyframes coinSpin {
    0% {
        transform: rotateY(0) rotateZ(0);
    }
    100% {
        transform: rotateY(360deg) rotateZ(360deg);
    }
}

/* Content Section */
.commission-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-height: 400px;
    overflow-y: auto;
}

.commission-content::-webkit-scrollbar {
    width: 6px;
}

.commission-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.commission-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.commission-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.commission-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.commission-intro {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
}

.commission-section {
    margin-bottom: 20px;
}

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

.section-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.section-text strong {
    color: #ff5722;
    font-weight: 600;
}

.commission-list {
    list-style: none;
    padding-left: 0;
}

.commission-list li {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.commission-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
    font-size: 16px;
}

.commission-checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 20px;
}

.commission-checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #4caf50;
}

.commission-checkbox-container label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.commission-buttons {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.commission-cancel-btn,
.commission-proceed-btn {
    padding: 12px 30px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    flex: 1;
}

.commission-cancel-btn {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.commission-cancel-btn:hover {
    background: #eeeeee;
    border-color: #999;
}

.commission-proceed-btn {
    background: #4caf50;
    color: white;
}

.commission-proceed-btn:hover:not(:disabled) {
    background: #45a049;
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
}

.commission-proceed-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.commission-proceed-btn:active:not(:disabled) {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .commission-modal-container {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }

    .commission-illustration {
        flex: 0 0 250px;
        height: 250px;
    }

    .commission-content {
        max-height: 300px;
    }

    .commission-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .commission-intro {
        font-size: 14px;
        margin-bottom: 20px;
    }

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

    .section-text,
    .commission-list li {
        font-size: 13px;
    }

    .commission-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .commission-cancel-btn,
    .commission-proceed-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .commission-modal {
        margin: 20px;
    }

    .commission-modal-container {
        padding: 20px;
        gap: 20px;
    }

    .commission-illustration {
        flex: 0 0 200px;
        height: 200px;
    }

    .commission-title {
        font-size: 20px;
    }

    .commission-intro {
        font-size: 13px;
    }

    .person-head {
        width: 35px;
        height: 35px;
    }

    .person-body {
        width: 45px;
        height: 50px;
    }

    .money-coin-green,
    .money-coin-orange {
        width: 60px;
        height: 60px;
    }

    .coin-symbol {
        font-size: 36px;
    }
}
