/* Commission Calculator CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.cc-wrapper {
    font-family: 'Inter', sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    color: #1a2340;
}

/* Header */
.cc-header {
    background: linear-gradient(135deg, #0f2557 0%, #0d7377 100%);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    color: white;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.cc-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(13,115,119,0.3) 0%, transparent 60%);
    animation: ccPulse 4s ease-in-out infinite;
}
@keyframes ccPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.cc-header-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.cc-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 8px;
    position: relative;
}
.cc-header p {
    font-size: 1rem;
    opacity: 0.85;
    margin: 0 0 20px;
    position: relative;
}

/* Currency Bar */
.cc-currency-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 8px 20px;
    position: relative;
}
.cc-currency-bar label {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    font-weight: 500;
}
.cc-currency-bar select {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    font-family: 'Inter', sans-serif;
}
.cc-currency-bar select option {
    background: #0f2557;
    color: white;
}

/* Tabs */
.cc-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: #f0f4f8;
    padding: 6px;
    border-radius: 12px;
}
.cc-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    color: #6b7a99;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}
.cc-tab.active {
    background: linear-gradient(135deg, #0f2557, #0d7377);
    color: white;
    box-shadow: 0 4px 15px rgba(13,115,119,0.3);
}

/* Panel */
.cc-panel { display: none; }
.cc-panel.active { display: block; }

/* Grid */
.cc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) {
    .cc-grid { grid-template-columns: 1fr; }
}

/* Card */
.cc-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    margin-bottom: 16px;
    border: 1px solid #e8edf5;
}
.cc-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f2557;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f4f8;
}

/* Hero Card */
.cc-hero-card {
    background: linear-gradient(135deg, #0f2557, #0d7377);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 8px 30px rgba(13,115,119,0.3);
}
.cc-hero-label {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.cc-hero-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.cc-hero-sub {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Stats Grid */
.cc-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.cc-stat-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #e8edf5;
    text-align: center;
}
.cc-stat-label {
    font-size: 0.75rem;
    color: #8896b3;
    font-weight: 500;
    margin-bottom: 6px;
}
.cc-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f2557;
}
.cc-stat-value.teal { color: #0d7377; }

/* Fields */
.cc-field {
    margin-bottom: 20px;
}
.cc-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}
.cc-input-wrap {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.cc-input-wrap:focus-within {
    border-color: #0d7377;
}
.cc-prefix, .cc-suffix {
    padding: 10px 12px;
    background: #f7f9fc;
    color: #6b7a99;
    font-weight: 600;
    font-size: 0.9rem;
    border-right: 1px solid #e2e8f0;
}
.cc-suffix {
    border-right: none;
    border-left: 1px solid #e2e8f0;
}
.cc-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 14px;
    font-size: 1rem;
    font-weight: 600;
    color: #1a2340;
    font-family: 'Inter', sans-serif;
    background: white;
}

/* Slider */
input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    margin-top: 10px;
    -webkit-appearance: none;
    background: linear-gradient(to right, #0d7377 0%, #0d7377 50%, #e2e8f0 50%, #e2e8f0 100%);
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 3px solid #0d7377;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(13,115,119,0.4);
}

/* Breakdown Bar */
.cc-bar-wrap { }
.cc-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 4px;
    margin-top: 12px;
}
.cc-bar {
    height: 10px;
    background: #f0f4f8;
    border-radius: 5px;
    overflow: hidden;
}
.cc-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}
.cc-bar-fill.navy { background: #0f2557; }
.cc-bar-fill.teal { background: #0d7377; }
.cc-bar-fill.red { background: #e53e3e; }

/* Tiered */
.cc-tier-header, .cc-agent-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 40px;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #8896b3;
    margin-bottom: 8px;
    padding: 0 4px;
}
.cc-agent-header {
    grid-template-columns: 1fr 1fr 40px;
}
.cc-tier-row, .cc-agent-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 40px;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}
.cc-agent-row {
    grid-template-columns: 1fr 1fr 40px;
}
.cc-tier-row input, .cc-agent-row input {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a2340;
    font-family: 'Inter', sans-serif;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
.cc-tier-row input:focus, .cc-agent-row input:focus {
    border-color: #0d7377;
}
.cc-remove-tier, .cc-remove-agent {
    background: #fee2e2;
    color: #e53e3e;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.2s;
}
.cc-remove-tier:hover, .cc-remove-agent:hover {
    background: #e53e3e;
    color: white;
}
.cc-add-tier, .cc-add-agent {
    background: linear-gradient(135deg, #0f2557, #0d7377);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.2s;
}
.cc-add-tier:hover, .cc-add-agent:hover { opacity: 0.85; }

.cc-split-total {
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0d7377;
}

/* Agent Breakdown Cards */
.cc-agent-card {
    background: #f7f9fc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
    border-left: 4px solid #0d7377;
}
.cc-agent-card-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f2557;
    margin-bottom: 6px;
}
.cc-agent-card-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6b7a99;
}
.cc-agent-card-amount {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0d7377;
}

/* Table */
.cc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.cc-table th {
    background: linear-gradient(135deg, #0f2557, #0d7377);
    color: white;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
}
.cc-table th:first-child { border-radius: 8px 0 0 0; }
.cc-table th:last-child { border-radius: 0 8px 0 0; }
.cc-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f4f8;
    color: #1a2340;
    font-weight: 500;
}
.cc-table tr:nth-child(even) td { background: #f7f9fc; }
.cc-table tr:hover td { background: #edf2f7; }

/* Exports */
.cc-exports {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
    justify-content: center;
}
.cc-
