.ip-query-section {
    padding: 30px 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.ip-query-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.calculator-header {
    text-align: center;
    margin-bottom: 30px;
}

.header-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.calculator-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.calculator-title i {
    color: #11998e;
    font-size: 2.8rem;
}

.calculator-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.calculator-badge {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.badge-item {
    padding: 8px 20px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

.quick-presets {
    margin-bottom: 30px;
}

.presets-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 15px;
    text-align: center;
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.preset-btn {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.preset-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.calculator-main {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 30px;
    margin-bottom: 30px;
}

.calculator-inputs {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

.input-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #11998e;
}

.input-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group label i {
    color: #11998e;
    font-size: 0.9rem;
}

.form-control {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #11998e;
    box-shadow: 0 0 0 3px rgba(17, 153, 142, 0.1);
}

.input-hint {
    font-size: 0.85rem;
    color: #888;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #11998e;
    color: #11998e;
}

.btn-outline:hover {
    background: #11998e;
    color: #fff;
}

.history-list {
    max-height: 200px;
    overflow-y: auto;
}

.no-history {
    text-align: center;
    color: #888;
    padding: 20px;
}

.history-item {
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: monospace;
    font-size: 0.95rem;
}

.history-item:hover {
    background: #11998e;
    color: #fff;
}

.history-item:last-child {
    margin-bottom: 0;
}

.calculator-results {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.result-header {
    margin-bottom: 25px;
}

.result-content {
    min-height: 300px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #888;
}

.empty-state h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.empty-state p {
    color: #888;
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #11998e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    color: #888;
}

.result-main {
    margin-bottom: 30px;
}

.result-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.result-card.primary {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.result-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.result-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.9;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.result-value.highlight {
    font-size: 2.2rem;
    font-family: monospace;
}

.result-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 10px;
}

.result-badge.private {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.result-badge.public {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 0.85rem;
    color: #888;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.detail-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
}

.detail-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
}

.detail-label {
    font-size: 0.9rem;
    color: #888;
}

.detail-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.detail-value.private,
.detail-value.safe {
    color: #10B981;
}

.detail-value.public,
.detail-value.warning {
    color: #F59E0B;
}

.calculator-guide {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.guide-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-title i {
    color: #11998e;
}

.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.guide-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
}

.guide-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.guide-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.guide-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.guide-pros {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    margin-top: 10px;
}

.pro-tag {
    padding: 3px 10px;
    background: #10B981;
    color: #fff;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: #333;
    color: #fff;
    border-radius: 10px;
    font-size: 0.95rem;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 992px) {
    .calculator-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .calculator-title {
        font-size: 1.8rem;
    }

    .header-content {
        padding: 25px;
    }

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

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

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

    .action-buttons {
        flex-direction: column;
    }

    .guide-content {
        grid-template-columns: 1fr;
    }
}