/**
 * ConvMaster - Tip Calculator Styles
 * 
 * @package    ConvMaster
 * @version    1.0.0
 */

/* =====================================================
   TOOL PAGE LAYOUT
   ===================================================== */
.tool-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tool-header__icon {
    font-size: 2.5rem;
}

.tool-header__icon .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    font-weight: 700;
    font-size: 2rem;
}

.tool-header__icon .icon--yellow {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.tool-header__text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--text-primary);
}

.tool-header__text p {
    margin: 0;
    color: var(--text-secondary);
}

/* =====================================================
   CURRENT DATE BANNER
   ===================================================== */
.current-date-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(234, 88, 12, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.current-date-banner__icon {
    font-size: 1.25rem;
}

.current-date-banner__text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* =====================================================
   CALCULATOR WIDGET
   ===================================================== */
.tips-calc-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* =====================================================
   TOOLBAR
   ===================================================== */
.tips-calc-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    flex-wrap: wrap;
    gap: 1rem;
}

.tips-calc-toolbar__left,
.tips-calc-toolbar__right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Design Selector */
.design-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.design-selector label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.design-buttons {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 0.25rem;
}

.design-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.design-btn:hover {
    background: var(--bg-tertiary);
}

.design-btn.active {
    background: var(--bg-card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Popup Button */
.btn-popup {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-popup:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

.btn-popup__icon {
    font-size: 1rem;
}

/* =====================================================
   CALCULATOR CONTAINER
   ===================================================== */
.tips-calc-container {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 0;
    min-height: 520px;
}

/* =====================================================
   CALCULATOR MAIN
   ===================================================== */
.tips-calculator {
    padding: 1.5rem;
}

/* =====================================================
   TABS NAVIGATION
   ===================================================== */
.tips-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.tips-tab {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tips-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.tips-tab.active {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.4);
    color: #f59e0b;
}

.tips-tab__icon {
    font-size: 1rem;
}

/* =====================================================
   TAB PANELS
   ===================================================== */
.tips-panels {
    position: relative;
}

.tips-panel {
    display: none;
}

.tips-panel.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.tips-panel__desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* =====================================================
   FORM ELEMENTS
   ===================================================== */
.tips-form {
    margin-bottom: 1.5rem;
}

.tips-form__row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.tips-form__section {
    margin-bottom: 1.25rem;
}

.tips-section-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.tips-input-group {
    flex: 1;
    min-width: 120px;
}

.tips-input-group--large {
    flex: 2;
    min-width: 200px;
}

.tips-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.tips-input-group input,
.tips-input-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.tips-input-group input:focus,
.tips-input-group select:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.tips-input-group input::placeholder {
    color: var(--text-tertiary);
}

/* Remove spinners on ALL number inputs */
.tool-page input[type="number"],
input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

.tool-page input[type="number"]::-webkit-outer-spin-button,
.tool-page input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0;
    display: none !important;
}

/* Input with prefix/suffix */
.tips-input-wrapper {
    position: relative;
    display: flex;
}

.tips-input-wrapper input {
    padding-left: 2.5rem;
    padding-right: 1rem;
}

.tips-input-wrapper--small {
    max-width: 120px;
}

.tips-input-wrapper--small input {
    padding-left: 1rem;
    padding-right: 2.5rem;
}

.tips-input-prefix {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-tertiary);
    pointer-events: none;
}

.tips-input-suffix {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-tertiary);
    pointer-events: none;
}

/* =====================================================
   PRESET BUTTONS
   ===================================================== */
.tips-preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tips-preset {
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tips-preset:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--text-tertiary);
}

.tips-preset.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
    color: #f59e0b;
}

/* Custom Percent */
.tips-custom-percent {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tips-custom-percent label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tips-custom-percent .tips-input-wrapper {
    width: 100px;
}

.tips-custom-percent .tips-input-wrapper input {
    width: 100%;
    padding: 0.5rem 1.75rem 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    text-align: center;
}

.tips-custom-percent .tips-input-wrapper input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.tips-custom-percent .tips-input-wrapper .tips-input-suffix {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.85rem;
    pointer-events: none;
}

/* =====================================================
   ROUND OPTIONS
   ===================================================== */
.tips-round-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tips-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tips-radio input {
    width: auto;
    accent-color: #f59e0b;
}

.tips-radio span {
    transition: color 0.2s ease;
}

.tips-radio:hover span {
    color: var(--text-primary);
}

/* =====================================================
   STEPPER
   ===================================================== */
.tips-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
}

.tips-stepper input {
    width: 60px;
    padding: 0.75rem 0;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tips-stepper input:focus {
    outline: none;
}

.tips-stepper__btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: none;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tips-stepper__btn:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.tips-stepper__btn:active {
    transform: scale(0.95);
}

/* =====================================================
   CALCULATE BUTTON
   ===================================================== */
.btn-calculate {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.btn-calculate:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.4);
}

.btn-calculate:active {
    transform: translateY(0);
}

/* =====================================================
   RESULTS
   ===================================================== */
.tips-result {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(234, 88, 12, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.tips-result__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.tips-result__grid--split {
    grid-template-columns: 1fr;
}

.tips-result__grid--split .tips-result__item:first-child {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    margin-bottom: 0.5rem;
}

.tips-result__item {
    text-align: center;
}

.tips-result__item--small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 0.5rem 0;
}

.tips-result__label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.tips-result__item--small .tips-result__label {
    margin-bottom: 0;
}

.tips-result__value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tips-result__value--large {
    font-size: 2rem;
    font-weight: 700;
    color: #f59e0b;
}

.tips-result__value--highlight {
    color: #d97706;
}

.tips-result__breakdown {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(245, 158, 11, 0.2);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

/* =====================================================
   MESSAGE
   ===================================================== */
.tips-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.tips-message--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.tips-message--info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #2563eb;
}

/* =====================================================
   SERVICES GRID
   ===================================================== */
.tips-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.tips-service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tips-service-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tips-service-card__icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.tips-service-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.tips-service-card__range {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f59e0b;
    margin: 0 0 0.5rem;
}

.tips-service-card__desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* =====================================================
   REGION GUIDE
   ===================================================== */
.tips-region-selector {
    margin-bottom: 1.5rem;
}

.tips-region-selector select {
    width: 100%;
    max-width: 300px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.tips-region-selector select:focus {
    outline: none;
    border-color: #f59e0b;
}

.tips-region-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.tips-region-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.tips-region-card__flag {
    font-size: 2.5rem;
}

.tips-region-card__header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

.tips-region-card__status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
}

.tips-region-card__status--expected {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.tips-region-card__status--appreciated {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.tips-region-card__status--not-expected {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.tips-region-card__status--rare {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.tips-region-card__content {
    padding: 1.25rem;
}

.tips-region-card__content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.tips-region-card__table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tips-region-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.tips-region-card__row span {
    color: var(--text-secondary);
}

.tips-region-card__row strong {
    color: #f59e0b;
}

/* =====================================================
   HISTORY PANEL
   ===================================================== */
.tips-calc-history {
    border-left: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
}

.tips-calc-history__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.tips-calc-history__header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.tips-calc-history__clear {
    padding: 0.375rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.tips-calc-history__clear:hover {
    opacity: 1;
    background: rgba(239, 68, 68, 0.1);
}

.tips-calc-history__list {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    max-height: 450px;
}

.tips-calc-history__empty {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    padding: 2rem 1rem;
    margin: 0;
}

.tips-history-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.tips-history-item__type {
    font-weight: 600;
    color: #f59e0b;
    margin-bottom: 0.25rem;
}

.tips-history-item__calc {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.tips-history-item__result {
    font-weight: 600;
    color: var(--text-primary);
}

/* =====================================================
   INFO BOX
   ===================================================== */
.tips-calc-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

/* =====================================================
   SEO CONTENT
   ===================================================== */
.tool-content {
    margin-top: 3rem;
}

.tool-section {
    margin-bottom: 2.5rem;
}

.tool-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.tool-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.feature-card__icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    position: relative;
}

.step-card__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 0.75rem;
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--text-tertiary);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 1.25rem 1rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =====================================================
   DESIGN VARIATIONS
   ===================================================== */

/* Modern Design */
.tips-calculator[data-design="modern"] {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03), rgba(234, 88, 12, 0.03));
    border-radius: var(--radius-lg);
}

.tips-calculator[data-design="modern"] .tips-input-group input,
.tips-calculator[data-design="modern"] .tips-input-group select {
    border-radius: 16px;
    border: 2px solid var(--border-color);
}

.tips-calculator[data-design="modern"] .tips-input-group input:focus,
.tips-calculator[data-design="modern"] .tips-input-group select:focus {
    border-color: #f59e0b;
}

.tips-calculator[data-design="modern"] .btn-calculate {
    border-radius: 16px;
}

.tips-calculator[data-design="modern"] .tips-result {
    border-radius: 16px;
}

.tips-calculator[data-design="modern"] .tips-tab {
    border-radius: 12px;
}

.tips-calculator[data-design="modern"] .tips-preset {
    border-radius: 12px;
}

.tips-calculator[data-design="modern"] .tips-stepper {
    border-radius: 16px;
}

/* Minimal Design */
.tips-calculator[data-design="minimal"] .tips-input-group input,
.tips-calculator[data-design="minimal"] .tips-input-group select {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
    padding-left: 0;
}

.tips-calculator[data-design="minimal"] .tips-input-wrapper input {
    padding-left: 1.5rem;
}

.tips-calculator[data-design="minimal"] .tips-input-prefix {
    left: 0;
}

.tips-calculator[data-design="minimal"] .tips-input-group input:focus,
.tips-calculator[data-design="minimal"] .tips-input-group select:focus {
    border-color: #f59e0b;
    box-shadow: none;
}

.tips-calculator[data-design="minimal"] .btn-calculate {
    background: transparent;
    color: #f59e0b;
    border: 2px solid #f59e0b;
    box-shadow: none;
}

.tips-calculator[data-design="minimal"] .btn-calculate:hover {
    background: rgba(245, 158, 11, 0.1);
}

.tips-calculator[data-design="minimal"] .tips-result {
    background: transparent;
    border: none;
    border-left: 3px solid #f59e0b;
    border-radius: 0;
}

.tips-calculator[data-design="minimal"] .tips-tab {
    border: none;
    border-radius: 0;
    border-bottom: 2px solid transparent;
}

.tips-calculator[data-design="minimal"] .tips-tab.active {
    background: transparent;
    border-bottom-color: #f59e0b;
}

.tips-calculator[data-design="minimal"] .tips-preset {
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
}

.tips-calculator[data-design="minimal"] .tips-preset.active {
    border-bottom-color: #f59e0b;
    background: transparent;
}

/* =====================================================
   POPUP WINDOW STYLES
   ===================================================== */
.popup-calculator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    min-width: 420px;
    max-width: 95vw;
    max-height: 95vh;
    overflow: hidden;
}

.popup-calculator__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    cursor: move;
}

.popup-calculator__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.popup-calculator__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.popup-calculator__close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.popup-calculator__body {
    padding: 1.25rem;
    max-height: calc(95vh - 60px);
    overflow-y: auto;
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

/* =====================================================
   HIDDEN STATE
   ===================================================== */
[hidden] {
    display: none !important;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
    .tips-calc-container {
        grid-template-columns: 1fr;
    }
    
    .tips-calc-history {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    
    .tips-calc-history__list {
        max-height: 200px;
    }
}

@media (max-width: 640px) {
    .tool-page {
        padding: 1rem;
    }
    
    .tool-header {
        flex-direction: column;
        text-align: center;
    }
    
    .tool-header__text h1 {
        font-size: 1.5rem;
    }
    
    .tips-calc-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tips-calc-toolbar__left,
    .tips-calc-toolbar__right {
        justify-content: center;
    }
    
    .tips-calculator {
        padding: 1rem;
    }
    
    .tips-tabs {
        justify-content: center;
    }
    
    .tips-tab {
        padding: 0.5rem 0.625rem;
        font-size: 0.8rem;
    }
    
    .tips-tab__text {
        display: none;
    }
    
    .tips-form__row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .tips-input-group {
        min-width: 100%;
    }
    
    .tips-input-group--large {
        min-width: 100%;
    }
    
    .tips-preset-buttons {
        justify-content: center;
    }
    
    .tips-result__grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .tips-result__value--large {
        font-size: 1.75rem;
    }
    
    .btn-popup__text {
        display: none;
    }
    
    .tips-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-calc-info {
        margin: 0;
    }
    
    .popup-calculator {
        min-width: auto;
        width: 95vw;
    }
}

@media (max-width: 480px) {
    .design-selector label {
        display: none;
    }
    
    .tips-tab {
        padding: 0.5rem;
    }
    
    .tips-tab__icon {
        font-size: 1.1rem;
    }
    
    .current-date-banner {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        text-align: center;
    }
    
    .current-date-banner__text {
        font-size: 0.95rem;
    }
    
    .tips-round-options {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tips-services-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-custom-percent {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =====================================================
   DARK THEME SPECIFIC
   ===================================================== */
[data-theme="dark"] .tips-calculator[data-design="minimal"] .tips-input-group input,
[data-theme="dark"] .tips-calculator[data-design="minimal"] .tips-input-group select {
    background: transparent;
}

[data-theme="dark"] .tips-calculator[data-design="modern"] {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(234, 88, 12, 0.05));
}
