.tip-calculator {
    --tc-primary: #10b981;
    --tc-primary-soft: rgba(16, 185, 129, 0.1);
    --tc-bg: #fff;
    --tc-border: #e2e8f0;
    --tc-text: #1e293b;
    --tc-text-muted: #64748b;
    --tc-card-bg: #fff;
    --tc-input-bg: #f8fafc;
    --tc-item-bg: #f8fafc;
    --tc-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.theme-dark .tip-calculator {
    --tc-bg: #0f172a;
    --tc-border: #334155;
    --tc-text: #f1f5f9;
    --tc-text-muted: #94a3b8;
    --tc-card-bg: #1e293b;
    --tc-input-bg: #0f172a;
    --tc-item-bg: #0f172a;
    --tc-primary: #34d399;
    --tc-primary-soft: rgba(52, 211, 153, 0.1);
    --tc-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.tc-main-card {
    background: var(--tc-card-bg);
    border: 1px solid var(--tc-border);
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: var(--tc-shadow);
    backdrop-filter: blur(12px);
}

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

.tc-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--tc-primary-soft);
    color: var(--tc-primary);
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.tc-header h2 {
    font-size: 2.25rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.1;
}

.tc-header-icon {
    width: 64px;
    height: 64px;
    background: var(--tc-primary-soft);
    color: var(--tc-primary);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tc-header-icon svg {
    width: 32px;
    height: 32px;
}

.tc-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
}

.tc-input-field {
    margin-bottom: 2rem;
}

.tc-input-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--tc-text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tc-input-control {
    position: relative;
    display: flex;
    align-items: center;
}

.tc-control-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--tc-primary);
    width: 20px;
    height: 20px;
}

.tc-input-control input {
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    background: var(--tc-input-bg);
    border: 2px solid var(--tc-border);
    border-radius: 1.25rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--tc-text);
    transition: all 0.2s;
    outline: none;
}

.tc-input-control input:focus {
    border-color: var(--tc-primary);
    box-shadow: 0 0 0 4px var(--tc-primary-soft);
}

.tc-dropdown {
    position: relative;
}

.tc-dropdown-toggle {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: var(--tc-input-bg);
    border: 2px solid var(--tc-border);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tc-toggle-icon {
    color: var(--tc-primary);
    width: 20px;
    height: 20px;
}

.tc-selected-name {
    flex: 1;
    font-weight: 700;
}

.tc-chevron {
    color: var(--tc-text-muted);
    transition: transform 0.2s;
    margin-left: auto;
}

.tc-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 100%;
    background: var(--tc-card-bg);
    border: 1px solid var(--tc-border);
    border-radius: 1.25rem;
    box-shadow: var(--tc-shadow);
    z-index: 100;
    display: none;
    overflow: hidden;
}

.tc-dropdown-menu.show {
    display: block;
}

.tc-dropdown-search {
    padding: 1rem;
    border-bottom: 1px solid var(--tc-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--tc-input-bg);
}

.tc-dropdown-search input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    color: var(--tc-text);
}

.tc-dropdown-list {
    max-height: 250px;
    overflow-y: auto;
    background: var(--tc-card-bg);
}

.tc-dropdown-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    color: var(--tc-text);
}

.tc-dropdown-item:hover {
    background: var(--tc-primary-soft);
    color: var(--tc-primary);
}

.tc-dropdown-item.active {
    background: var(--tc-primary);
    color: white;
}

.tc-label-with-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.tc-value-highlight {
    font-weight: 900;
    color: var(--tc-primary);
}

.tc-percentage-pills {
    display: flex;
    gap: 0.5rem;
}

.tc-pill-btn {
    flex: 1;
    padding: 1rem;
    background: var(--tc-input-bg);
    border: 2px solid var(--tc-border);
    border-radius: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--tc-text);
}

.tc-pill-btn:hover {
    border-color: var(--tc-primary);
}

.tc-pill-btn.active {
    background: var(--tc-primary);
    border-color: var(--tc-primary);
    color: white;
}

.tc-split-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tc-split-btn {
    width: 54px;
    height: 54px;
    border-radius: 1rem;
    border: 2px solid var(--tc-border);
    background: var(--tc-input-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--tc-text);
}

.tc-split-btn:hover {
    border-color: var(--tc-primary);
    color: var(--tc-primary);
}

.tc-split-display {
    flex: 1;
    background: var(--tc-input-bg);
    border: 2px solid var(--tc-border);
    border-radius: 1rem;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 900;
    font-size: 1.25rem;
}

.tc-split-display svg {
    color: var(--tc-primary);
}

.tc-summary-card {
    background: linear-gradient(135deg, var(--tc-primary) 0%, #059669 100%);
    border-radius: 2rem;
    padding: 2.5rem;
    color: #fff;
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.2);
}

.tc-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.tc-summary-line strong {
    font-weight: 800;
}

.tc-summary-details {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

.tc-total-label {
    display: block;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.tc-total-amount {
    text-align: center;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
}

.tc-total-amount small {
    font-size: 1.5rem;
    margin-left: 0.25rem;
}

.tc-culture-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--tc-item-bg);
    border: 1px solid var(--tc-border);
    border-radius: 1.5rem;
}

.tc-culture-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    color: var(--tc-primary);
}

.tc-culture-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: var(--tc-text-muted);
}

@media (max-width: 768px) {
    .tc-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tc-main-card {
        padding: 1.5rem;
    }

    .tc-header h2 {
        font-size: 1.75rem;
    }
}